package com.jingdianjichi.subject;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Description:刷题微服务启动类
 * @return:
 * @Author:  sky
 * @date:  2024/11/6 1:08
 */
@SpringBootApplication
@ComponentScan("com.jingdianjichi")   // 扫描注解@Component、@Controller、@Service、@Repository
@MapperScan("com.jingdianjichi.**.mapper")  // 加载所有目录下的mapper。扫描注解@Mapper，针对于Mybatis设计
@EnableFeignClients(basePackages = "com.jingdianjichi")   // 使能FeignClient，指定路径，扫描注解@FeignClient。让其生效，并装载到IOC容器里
public class SubjectApplication {
    // psvm
    public static void main(String[] args) {
        SpringApplication.run(SubjectApplication.class);
    }
}
